-- GENERATED SPELL FOR [Venomspite Deathguard] --


function spell0_27035(pUnit, Event) --@Revenge,n/a--
pUnit:FullCastSpellOnTarget(12170,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27035', 576, 1)
end

function spell1_27035(pUnit, Event) --@Shield Block,Self--
pUnit:FullCastSpellOnTarget(12169,pUnit)
pUnit:RegisterEvent('Sorts_27035', 5321, 1)
end

function Sorts_27035(pUnit, Event)
local choix_sorts_27035 = math.random(0, 1)
if choix_sorts_27035 == 0 then
pUnit:RegisterEvent('spell0_27035', 1, 1)
end
if choix_sorts_27035 == 1 then
pUnit:RegisterEvent('spell1_27035', 1, 1)
end
end

function mob27035_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27035', math.random(1500, 3000), 1)
end

function mob27035_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27035_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27035_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27035, 1, 'mob27035_Action')
RegisterUnitEvent(27035, 2, 'mob27035_Leave')
RegisterUnitEvent(27035, 3, 'mob27035_Kill')
RegisterUnitEvent(27035, 4, 'mob27035_Die')
